<%-- 
    Document   : update_project
    Created on : Jun 12, 2014, 9:34:30 AM
    Author     : monkeydluffy
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div>
    <!--<h2>Create Project</h2>-->
    <c:if test="${projectEdit!=null}">
    <form action="/JudiBlog/projectmanage" method="post" name="UpdateProject">
        <div class="create_project">
            <div class="project_name"><label>Project Name</label><input type="text" class="input_name" value="${projectEdit.getProjectName()}" name="projectName"/></div>
            <div class="start_day"><label>Start Day</label>
                <div class="time">
                    <input type="date" value="${projectEdit.getStartDate()}" name="StartDate" >
                </div>
            </div>
            <div class="duration_time"><label>Duration Time</label>
                <input type="text" value="${projectEdit.getDuration()}" class="input_time" name="duration"/>
               
                <select class="duration" name="dtype">
                    <option value="day">Day</option>
                    <option value="week">Week</option>
                    <option value="month">Month</option>
                </select>
            </div>        
            <div class="project_type"><label>Project Type</label>
                <select name="projectType" >
                    <option value="${projectEdit.getType().getTypeName()}">${projectEdit.getType().getTypeName()}</option>
                    
                    <c:forEach items="${typeList}" var="list">
                        <c:if test="${list.getTypeID() != projectEdit.getType().getTypeID()}" > 
                        <option value="${list.getTypeName()}">${list.getTypeName()}</option>
                    </c:if>
                    </c:forEach>
                        
                </select>
            </div>
            <div class="description"><label>Description</label>
                <div><textarea name="description"  >${projectEdit.getDescription()}</textarea></div>
            </div>
            <div class="submit">
                <input type="hidden" value="${projectEdit.getProjectID()}" name="id"/>
                <input type="submit" value="UpdateProject" name="submit" class="submit_project"/>
            </div>
        </div>
    </form>
    </c:if>
</div>
                    